/**
 * 
 */
package com.orange.handler.expert.impl;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.orange.dbhelp.page.Page;
import com.orange.handler.expert.AuthSpecialTaskService;
import com.orange.modules.dao.expert.AuthSpecialTaskRepository;
import com.orange.modules.entity.expert.AuthSpecialTask;

/**
 * @author gaogs
 *
 * 2016-11-30
 */
@Service
public class AuthSpecialTaskServiceImpl implements AuthSpecialTaskService {

	@Autowired
	private AuthSpecialTaskRepository authSpecialTaskRepository;
	
	/* (non-Javadoc)
	 * @see com.orange.handler.expert.AuthSpecialTaskService#saveAuthSpecialTaskInfo(com.orange.modules.entity.expert.AuthSpecialTask)
	 */
	@Override
	public void saveAuthSpecialTaskInfo(AuthSpecialTask a) {
		authSpecialTaskRepository.saveAuthSpecialTaskInfo(a);
	}

	/* (non-Javadoc)
	 * @see com.orange.handler.expert.AuthSpecialTaskService#deleteAuthSpecialTaskInfo(java.lang.String)
	 */
	@Override
	public void deleteAuthSpecialTaskInfo(String pid) {
		authSpecialTaskRepository.deleteAuthSpecialTaskInfo(pid);
	}

	/* (non-Javadoc)
	 * @see com.orange.handler.expert.AuthSpecialTaskService#queryAuthGroupPage(java.util.Map)
	 */
	@Override
	public Page<AuthSpecialTask> queryauthSpecialTaskPage(Map<String, String> map)
			throws SQLException {
		Page<AuthSpecialTask> page=authSpecialTaskRepository.queryauthSpecialTaskPage(map);
		return page;
	}

	/* (non-Javadoc)
	 * @see com.orange.handler.expert.AuthSpecialTaskService#queryAuthSpecialTaskInfoById(java.lang.String)
	 */
	@Override
	public AuthSpecialTask queryAuthSpecialTaskInfoById(String pid) {
		AuthSpecialTask a=authSpecialTaskRepository.queryAuthSpecialTaskInfoById(pid);
		return a;
	}

	/* (non-Javadoc)
	 * @see com.orange.handler.expert.AuthSpecialTaskService#queryAuthSpecialTaskinfoss()
	 */
	@Override
	public List<AuthSpecialTask> queryAuthSpecialTaskinfoss()
			throws SQLException {
		List<AuthSpecialTask> list=authSpecialTaskRepository.queryAuthSpecialTaskinfoss();
		return list;
	}

	/* (non-Javadoc)
	 * @see com.orange.handler.expert.AuthSpecialTaskService#queryAuthSpecialTaskByType(java.lang.String)
	 */
	@Override
	public List<AuthSpecialTask> queryAuthSpecialTaskByType(String type, String major)
			throws SQLException {
		List<AuthSpecialTask> ls=authSpecialTaskRepository.queryAuthSpecialTaskByType(type,major);
		return ls;
	}

	@Override
	public List<AuthSpecialTask> queryTaskNameByType(String major) throws SQLException {
		List<AuthSpecialTask> list = authSpecialTaskRepository.queryTaskNameByType(major);
		return list;
	}

}
